
<p style="margin-bottom: 0px">&nbsp;</p>

<nz-spin [nzSpinning]="loading">
<nz-card>
  <!-- <nz-tabset [nzTabBarExtraContent]="extraTemplete" (nzSelectChange)="change($event)"> -->
  <!--<nz-tabset>-->
    <!--<nz-tab nzTitle="供应商物料列表"></nz-tab>-->
  <!--</nz-tabset>-->
  <!-- <nz-tabset [nzTabBarExtraContent]="extraTemplete" (nzSelectChange)="change($event)"> -->
  <nz-tabset>
    <nz-tab nzTitle="100FU试制备料单下单"></nz-tab>
  </nz-tabset>
  <ng-template #extraTemplete>

  </ng-template>


  <form nz-form [nzLayout]="'inline'" class="search__form">
      <div nz-row [nzGutter]="24">

        <div nz-col nzLg="4">
          <nz-form-item>
            <!--<nz-form-label nzFor="spQuotientQuery">供应商电话</nz-form-label>-->
            <nz-form-control>
              <input nz-input [(ngModel)]="q.blXuhao" name="blXuhao" (keyup)="($event.which === 13)?loaddata(1):0" placeholder="序号" >
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col nzLg="4">
          <nz-form-item>
            <!--<nz-form-label nzFor="spQuotientQuery">供应商编号</nz-form-label>-->
            <nz-form-control>
              <input nz-input [(ngModel)]="q.lifnr" name="lifnr" (keyup)="($event.which === 13)?loaddata(1):0" placeholder="供应商编号" >
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col nzLg="4">
          <nz-form-item>
            <!--<nz-form-label nzFor="spQuotientQuery">供应商名称</nz-form-label>-->
            <nz-form-control>
              <input nz-input [(ngModel)]="q.name1" name="name1" (keyup)="($event.which === 13)?loaddata(1):0" placeholder="供应商名称" >
            </nz-form-control>
          </nz-form-item>
        </div>
        <div nz-col nzLg="4">
          <nz-form-item>
            <!--<nz-form-label nzFor="spQuotientQuery">供应商电话</nz-form-label>-->
            <nz-form-control>
              <input nz-input [(ngModel)]="q.blKuanhao" name="blKuanhao" (keyup)="($event.which === 13)?loaddata(1):0" placeholder="款号或物料号" >
            </nz-form-control>
          </nz-form-item>
        </div>
        <!--        <div nz-col nzLg="4">-->
        <!--          <nz-form-item>-->
        <!--            &lt;!&ndash;<nz-form-label nzFor="spQuotientQuery">供应商电话</nz-form-label>&ndash;&gt;-->
        <!--            <nz-form-control>-->
        <!--              <input nz-input [(ngModel)]="q.blPinpai" name="blPinpai" (keyup)="($event.which === 13)?loaddata(1):0" placeholder="品牌" >-->
        <!--            </nz-form-control>-->
        <!--          </nz-form-item>-->
        <!--        </div>-->
        <!--        <div nz-col nzLg="4">-->
        <!--          <nz-form-item>-->
        <!--            &lt;!&ndash;<nz-form-label nzFor="spQuotientQuery">供应商电话</nz-form-label>&ndash;&gt;-->
        <!--            <nz-form-control>-->
        <!--              <input nz-input [(ngModel)]="q.blPinxiang" name="blPinxiang" (keyup)="($event.which === 13)?loaddata(1):0" placeholder="品项" >-->
        <!--            </nz-form-control>-->
        <!--          </nz-form-item>-->
        <!--        </div>-->
        <div nz-col nzLg="2">
          <button nz-button type="button" [nzType]="'primary'" class="mx-sm" (click)="loaddata(1)">查询</button>

        </div>
      </div>
    </form>

</nz-card>
  <button nz-button type="button" [nzLoading]="loading" style="margin-bottom: 8px"  (click)="packatta()"><i class="anticon anticon-down"></i>导出下单信息</button>
<!--  <button nz-button type="button" [nzLoading]="loading" style="margin-bottom: 8px"  (click)="shenpi()"><i class="anticon anticon-down"></i>批量审批</button>-->
<!--  <button nz-button type="button" [nzLoading]="loading" style="margin-bottom: 8px"  (click)="xiadan()"><i class="anticon anticon-down"></i>批量下单</button>-->
  <button nz-button type="button" [nzLoading]="loading" style="margin-bottom: 8px"  (click)="shenpibatch(3)"><i class="anticon anticon-down"></i>下达</button>
  <button nz-button type="button" [nzLoading]="loading" style="margin-bottom: 8px"  (click)="shenpibatch(4)"><i class="anticon anticon-down"></i>删除</button>
  <nz-upload [nzAction]="uploadExcelUrl" [nzShowUploadList]="false" nzAccept="application/vnd.ms-excel" (nzChange)="uploadProd($event)">
    <button   nz-button style="margin-left: 10px;margin-right: 8px;margin-bottom: 8px"><i class="anticon anticon-upload"></i><span>100FU试制备料单下单</span></button>
  </nz-upload>
<simple-table #st
    [columns]="columns"
    [data]="url"
    [ps]="ps"
    [extraParams]="q"
    [resReName]="{ total: 'total', list: 'data'}"
    [reqReName]="{pi:'pageNumber', ps: 'pageSize'}"
    toTopInChange
    [showTotal]="true"
    [showPagination]="true"
    [showSizeChanger]="true"
              [scroll]="{  x: '2800px' }"
    (checkboxChange)="checkboxChange($event)"
    >
</simple-table>

</nz-spin>
